home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 February / february_2000.iso / site building / GoLive 4.0 Tryout / data1.cab / Apps / Modules / JScripts / Actions / Others / Netscape CSS Fix.action next >
Encoding:
Text File  |  1999-08-05  |  2.7 KB  |  78 lines

  1. <html>
  2.  
  3.     <head>
  4.         <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
  5.         <meta name="generator" content="Adobe GoLive 4">
  6.         <title>Netscape CSS Fix Action</title>
  7.     </head>
  8.  
  9.     <body bgcolor="white">
  10.         <center>
  11.             <font size="6">Netscape CSS Fix Action</font><font>
  12.             <hr>
  13.             </font>
  14.             <p> </p>
  15.         </center>
  16.         <div align="left">
  17.             <p>
  18.             <csactionclass name="Netscape CSS Fix" function="CSNSFix" nsversion="4" ieversion="4">   </p>
  19.         </div>
  20.         <p></csactionclass>
  21.          </p>
  22.         <p> </p>
  23.         <p>
  24.         <script language="JavaScript1.2" cyberversion="N1.2"><!--
  25. function CSFixFct() {
  26.     var d = document; var w = window;
  27.     if (d.cs.csFix.w != w.innerWidth || d.cs.csFix.h != w.innerHeight) {
  28.         d.location = d.location; }
  29. }
  30. function CSNSFix(action) { 
  31.     var d = document; var w = window;
  32.     if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
  33.         if (typeof d.cs == 'undefined') { 
  34.             d.cs = new Object;
  35.             d.cs.csFix = new Object; 
  36.         } else if (CSIsFrame (w) == true) CSFixFct();
  37.         d.cs.csFix.w = w.innerWidth;
  38.         d.cs.csFix.h = w.innerHeight; 
  39.         window.onresize = CSFixFct;
  40.       }
  41. }
  42. function CSIsFrame (window) {
  43.     var rootWindow = window.parent;
  44.     if (rootWindow == 'undefined') return false;
  45.     for (i = 0; i < rootWindow.frames.length; i++)
  46.         if (window == rootWindow.frames[i]) return true;
  47.     return false;
  48. }
  49. // -->
  50.         </script>
  51.          </p>
  52.         <p> </p>
  53.         <p>
  54.         <table cool width="226" height="107" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx usegridx gridy="16" showgridy usegridy bgcolor="#eeeeee">
  55.             <tr height="1" cntrlrow>
  56.                 <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
  57.                 <td width="16" height="1"><spacer type="block" width="16" height="1"></td>
  58.                 <td width="207" height="1"><spacer type="block" width="207" height="1"></td>
  59.             </tr>
  60.             <tr height="16">
  61.                 <td width="1" height="16"><spacer type="block" width="1" height="16"></td>
  62.                 <td width="16" height="16"><spacer type="block" width="16" height="16"></td>
  63.                 <td width="207" height="16"><spacer type="block" width="207" height="16"></td>
  64.             </tr>
  65.             <tr height="88">
  66.                 <td width="1" height="88"><spacer type="block" width="1" height="88"></td>
  67.                 <td width="16" height="88"><spacer type="block" width="16" height="88"></td>
  68.                 <td width="207" height="88" colspan="1" rowspan="1" valign="top" align="left" xpos="16">
  69.                     <csactioncntrl x="16" y="16" width="192" height="80" alignx="scale" aligny="scale" type="InfoText" value="This action fixes the Netscape 4 bug that causes the page to lose most of its CSS information when the window is resized.">
  70.                 </td>
  71.             </tr>
  72.         </table>
  73.         </p>
  74.         <p> 
  75.     </body>
  76.  
  77. </html>
  78.